package panel;

import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author daz
 */
public abstract class Screen extends JPanel {

    JFrame frame;
    public int cavanWidth;
    public int canvasHeight;

    public Screen(JFrame frame) {
        this.frame = frame;
        this.cavanWidth = 400;
        this.canvasHeight = 420;
        initValue();
        initListenner();
        initComponent();
    }

    @Override
    public Dimension getPreferredSize() {
        return new Dimension(cavanWidth, canvasHeight);
    }

    abstract void initValue();

    abstract void initComponent();

    abstract void initListenner();
}
